<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>测试utils

  </title>
  <script type="text/javascript" src="./index.js"></script>
</head>
<body>
  <h1 id="success">所有函数执行正常</h1>
</body>

<script>
  try{
    const obj = {
      name:'1212',
      year:{
        age:18,
      },
      act:function(){
        console.log('kl');      
      }
    }
    const newObj = deepClone(obj)
    newObj.act();
  }catch(err){
    document.getElementById('success').innerHTML = '执行出错:' + err;
  }
</script>
</html>